/* 全局滚动样式 */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden; /* 隐藏水平滚动条 */
}

/* 防止页面出现不必要的滚动条 */
.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* 登录/注册页面公共样式 */
.auth-page {
  background: #f1f1f1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  
  .logo {
    margin-left: 50px;
    padding-top: 50px;
    flex-shrink: 0;
    
    img {
      width: 100px;
    }
  }
  
  .auth-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
  }
  
  .login-left {
    padding: 20px;
    flex-shrink: 0;
    
    .sign_bg {
      width: 70%;
      margin-bottom: 40px;
    }
    
    .page_download {
      background: #ffffff;
      margin-left: 20px;
      padding: 5px;
      
      img {
        width: 46px;
      }
    }
  }
  
  .login-right {
    padding: 20px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    
    .login-form {
      width: 400px;
      padding: 50px 50px 30px;
      background-color: #fff;
      border-radius: 4px;
      box-shadow: 0 0 8px rgb(0 0 0 / 10%);
      
      .tag-title {
        font-size: 18px;
        font-family: Georgia, Times New Roman, Times, Songti SC, serif;
        
        a:hover {
          border-bottom: 2px solid #ea6f5a;
        }
        
        .active {
          font-weight: 700;
          color: #ea6f5a;
          border-bottom: 2px solid #ea6f5a;
          padding: 5px 10px;
        }
        
        b {
          padding: 5px 15px;
          color: #969696;
          font-weight: 700;
        }
        
        a:not(.active) {
          padding: 5px 10px;
          color: #969696;
        }
      }
      
      .form {
        margin-top: 30px;
        background-color: #f7f7f7;
        border: 1px #c8c8c8 solid;
        border-radius: 6px;
        margin-bottom: 20px;
        
        .ant-form-item {
          margin-bottom: 0 !important;
        }
      }
      
      .more-sign {
        margin-top: 50px;
        text-align: center;
        
        h6 {
          position: relative;
          margin: 0 0 10px;
          font-size: 12px;
          color: #b5b5b5;
          
          &:before,
          &:after {
            content: "";
            border-top: 1px solid #b5b5b5;
            display: block;
            position: absolute;
            width: 60px;
            top: 8px;
          }
          
          &:before {
            left: 30px;
          }
          
          &:after {
            right: 30px;
          }
        }
      }
    }
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .auth-page {
    .auth-content {
      flex-direction: column;
      padding: 10px;
    }
    
    .login-left {
      display: none; /* 移动端隐藏左侧内容 */
    }
    
    .login-right {
      width: 100%;
      padding: 10px;
      
      .login-form {
        width: 100%;
        max-width: 400px;
        padding: 30px 20px;
      }
    }
  }
}
